package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.CapBacDao;
import com.tt.fashionWebSite.domain.CapBac;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by isoft-work 5 on 11/10/14.
 */
@Repository("capBac")
public class CapBacJpaDao extends GenericJpaDao<CapBac, String> implements CapBacDao {
   public CapBacJpaDao() {
      super(CapBac.class);
   }

    @Override
         public List<CapBac> getInfoRegister(){
        return getEntityManager().createNamedQuery(CapBac.GET_INFO_REGISTER, CapBac.class).getResultList();
    }
}
